﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsOnTop
{
    public partial class Form1 : Form
    {
        private string alpha = "ABCDEFGH";
        private Random random = new Random();
        private int current;

        public Form1()
        {
            InitializeComponent();
            current = random.Next(1000);
            label1.Text = alpha[random.Next(alpha.Length)].ToString() + " " + current.ToString();

        }

        private void button1_Click(object sender, EventArgs e)
        {
            current++;
            current %= 1000;
            label1.Text = alpha[random.Next(alpha.Length)].ToString() + " " + current.ToString();
        }
    }
}
